import "./style.css";
import Icon from './img1.png';
import Data from "./data.json";
//import Fil from './new_file.xml';
import printMe from "./print.js";

function createElement() {
	var element = document.createElement('div');
	var btn = document.createElement('button');

	// Lodash（目前通过一个 script 脚本引入）对于执行这一行是必需的
	element.innerHTML = "bluej";
	
	element.classList.add('hello');
	
	var myIcon = new Image();
	myIcon.src = Icon;
	
	btn.innerHTML="可以了！";
	btn.onclick = printMe;
	
	console.log(Data)
	
	element.appendChild(btn);
	element.appendChild(myIcon);
	return element;
}

document.body.appendChild(createElement());